Skip to content

Commit

Permalink
Fix symlinks in packages/$DISTRO
Browse files Browse the repository at this point in the history
  • Loading branch information
palpant-dbx committed Sep 19, 2023
1 parent a4f6269 commit 89b9a4b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion create-ubuntu-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ rm -rf apt-release.conf apt-ftparchive.conf
mkdir -p $SRCDIR/build/packages/$DISTRO
for F in pool/main/*.deb; do
echo Symlinking $F
ln -sf ../../$DISTRO/pool/main/$F $SRCDIR/build/packages/$DISTRO/
ln -sf ../../$DISTRO/$F $SRCDIR/build/packages/$DISTRO/
done
14 changes: 12 additions & 2 deletions create-yum-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,23 @@ for DIST in $DISTS; do
for ARCH in $ARCHS; do
mkdir -p $DIST/$ARCH
cd $DIST/$ARCH
ln -s ../../pool/*$ARCH*.rpm .
ln -sf ../../pool/*$ARCH*.rpm .
cd ../..

done

createrepo $DIST
done

# Move up into build dir.
cd ..

# Create symlinks for packages.
mkdir -p packages/fedora
for F in fedora/pool/*.rpm; do
echo Symlinking $F
ln -sf ../../$F packages/fedora/
done

# Go back up to top-level directory to leave the caller in the same dir they started.
cd ../..
cd ..

0 comments on commit 89b9a4b

Please sign in to comment.